using UnityEngine;
using UnityEngine.UI;

//显示图片数字的精灵
public class NumberSprite : MonoBehaviour
{
    private Image image;

    
    private void Awake()
    {
        image = GetComponent<Image>();
    }

    //设置图片
    public void SetImage(int number)
    {
        image.sprite = ResManager.instance.LoadSprite(number);
    }


    //生成效果
    public void CreateEffect()
    {
        iTween.ScaleFrom(gameObject, Vector3.zero, 0.3f);
    }

}